package com.iplay.实战java高并发程序设计.chapter5.c55;

import java.util.concurrent.Callable;

/**
 * @author dangwu
 * @since 2021/11/5 5:30 下午
 */
public class RealData2 implements Callable {
    private String para;
    public RealData2(String para){
        this.para = para;
    }
    @Override
    public Object call() throws Exception {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < 10; i++) {
            sb.append(para);
            Thread.sleep(100);
        }
        return sb.toString();
    }
}
